/*
 * transaction.h
 *
 *   Copyright 2010 Emediate ApS
 *
 *   This file is part of Stampede.
 *
 *   Stampede is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   Stampede is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with Stampede.  If not, see <http://www.gnu.org/licenses/>.
 *
 *   Written by: Erland Lewin <erland@emediate.se>
 *
 *  Created on: Dec 22, 2009
 */

#ifndef TRANSACTION_H_
#define TRANSACTION_H_

#include <libxml/xmlstring.h>

typedef struct sTransaction *Transaction;

Transaction transaction_create( const xmlChar *url, int thinkTimeSeconds,
                                const xmlChar *expectedBodyFilename );
const xmlChar *transaction_getExpectedBody( const Transaction transaction );
const xmlChar *transaction_getURL( const Transaction transaction );
int transaction_getThinkTime( const Transaction transaction );

#endif /* TRANSACTION_H_ */
